<?php
/*
 * @Author: 李志刚
 * @CopyRight: 2020-2030 衡水山木枝技术服务有限公司
 * @Date: 2021-10-19 15:23:55
 * @Description: 快递公司信息表
 * @LastEditors: 李志刚
 * @LastEditTime: 2021-10-19 18:08:01
 * @FilePath: /归档/base/2021_10_19_152243_create_logistics_table.php
 */

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateLogisticsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('logistics', function (Blueprint $table) {
            $table->engine = 'InnoDB';
            $table->id();
            $table->string('name',50)->nullable()->comment('快递名称');
            $table->string('code',50)->nullable()->comment('code');
            $table->string('key',50)->nullable()->comment('key');
            $table->boolean('status')->default(1)->comment('1 可用，0 禁用');
            $table->tinyInteger('del_flag')->default(0)->comment('删除状态（1删除 0正常）');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('logistics');
    }
}
